package org.lilred.nzbberry.util;

import net.rim.device.api.ui.Font;
import net.rim.device.api.ui.FontFamily;
import net.rim.device.api.ui.Ui;

public class FontFactory {
	public static Font getFont(int size) {
		Font font = null;
		try {
			FontFamily alphaSansFamily = FontFamily.forName("BBGlobal Sans");
			font = alphaSansFamily.getFont(Font.PLAIN, size, Ui.UNITS_px);
		} catch (ClassNotFoundException e) { }
		return font;
	}
}
